package com.project.Serivce.impl;

import com.project.Serivce.IStudentService;
import com.project.bean.StudentBean;
import com.project.mapper.IStudentMapper;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements IStudentService {

    private IStudentMapper mapper;
    @Override
    public void add(StudentBean student) {
        mapper.add(student);
    }

    @Override
    public List<StudentBean> findAll() {
      return  mapper.findAll();
    }

    @Override
    public void update(Integer studentId, String phone) {
        mapper.update(studentId,phone);
    }
}
